import { Component } from "react";

// 引入 store
import store from "../store";

export default class Hello extends Component {
  render() {
    // 获取 state
    const state = store.getState();

    return (
      <div>
        <h2>Hello</h2>
        <p>msg: {state.msg}</p>
        <p>count: {state.count}</p>
      </div>
    );
  }
}
